package com.hdaccp.letting.controller;

import com.hdaccp.letting.entity.Userinfo;
import com.hdaccp.letting.service.UserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
@RequestMapping("/user")
public class UserInfoController {
    @Autowired
    private UserInfoService userInfoService ;
    @RequestMapping("/queryAll")
    @ResponseBody
    public List<Userinfo> queryAll(){
        return userInfoService.queryAll() ;
    }

}
